package priv.pfz.raft.network.dto;

import com.google.common.collect.Lists;
import lombok.Getter;
import lombok.Setter;
import priv.pfz.raft.peer.model.LogEntry;
import priv.pfz.raft.peer.model.LogKey;

import java.util.List;

/**
 * @author pengfangzhou
 * @date 2022/2/3 18:12
 */
@Getter
@Setter
public class AppendEntriesReq extends BaseReq {
    private int term;
    private String leaderId;
    private LogKey commitLogKey;
    private LogKey prevLogKey;
    private List<LogEntry> logEntries = Lists.newArrayList();
}
